<template>
	<view class="body">
		<view class="tag-sex icon iconfont " :class="[sex == 0 ? 'icon-nan':'icon-nv']">{{age}}</view>
	</view>
</template>


<script>
	export default {
		props:{
			age:Number,
			sex:Number
		}
	}
</script>

<style scoped>
	.tag-sex{
		background-color: #007AFF;
		padding:2upx 10upx;
		border-radius: 20upx;
		color:#fff;
		font-size: 25upx;
		line-height:1; 
		text-align: center;
	}
	.tag-sex.icon-nv{ 
		background-color: pink;
	}
</style>
